<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div class="box_blue">
	<div class="box_title">
		订单列表
	</div>
	<table style="width: 100%;">
		<tr>
			<th scope="col">
				订单编号
			</th>
			<th scope="col">
				订单标题
			</th>
			<th scope="col">
				订单状态
			</th>
			<th scope="col">
				订单创建时间
			</th>
			<th scope="col">
				订单创建人
			</th>
		</tr>
		<s:if test="orders == null || orders.size() == 0">
			<tr>
				<td colspan="7" align="center">
					没有符合要求的数据
				</td>
			</tr>
		</s:if>
		<s:else>
			<s:iterator value="orders" id="item">
				<tr>
					<td class="row">
						<a href="<%=request.getContextPath()%>/order/viewOrder.do?id=<s:property value="#item.id" />"> <s:property value="#item.id" /> </a>
					</td>
					<td class="row">
						<s:property value="#item.title" />
					</td>
					<td class="row">
						<s:text name="%{#item.statusText}" />
					</td>
					<td class="row">
						<s:property value="#item.creationTime" />
					</td>
					<td class="row">
						<s:property value="#item.createUser.name" />
					</td>
				</tr>
			</s:iterator>
		</s:else>
	</table>
	<jsp:include page="/include/pagecute.jsp"></jsp:include>
</div>